# 计算 E 的近似值
import math
s = 1
f = 1
i = 1
while f >= 1e-7:
    f = 1 / math.factorial(i)
    s += f
    i = i + 1
print("e值为{:.8}".format(s))